//
//  FindTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/4/6.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "FindTableViewCell.h"

@implementation FindTableViewCell

-(void)dealloc
{
    [_logo release];
    [_name release];
    
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.logo = [[UIImageView alloc] init];
        self.logo.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.logo];
        [_logo release];
        
        self.name = [[UILabel alloc] init];
        self.name.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.name];
        [_name release];
        
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.logo.frame = CGRectMake(10, 5, 50, 50);
    self.name.frame = CGRectMake(70, 5, BOUNDS_WIDTH - 70, 50);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
